<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Apps\Apis\Common\DefCtl;

final class DefBillsBizCtl extends DefAbstract
{
    private const TABLE_NAME                = 'def_bills_biz';
    private const FIELD_ID                  = 'dbbz_id';
    private const FIELD_KEY                 = 'dbbz_key';
    private const FIELD_NAME                = 'dbbz_name';
    public const EXT_NAME                   = 'name';
    public const KEY_RECHARGE               = 'recharge';               // 充值
    public const KEY_RECHARGE_GIVE          = 'recharge_give';          // 充值赠送
    public const KEY_RECHARGE_GIVE_EXPIRE   = 'recharge_give_expire';   // 充值赠送过期
    public const KEY_COIN_USE_UNLOCK        = 'coin_use_unlock';        // 剧集解锁
    public const KEY_RECHARGE_ADMIN         = 'recharge_admin';         // 管理员充值
    public const KEY_RECHARGE_TASK          = 'recharge_task';          // 任务领奖
    public const KEY_REVIEW_FEEDBACK_TASK   = 'review_feedback_task';   // 反馈评价领奖
    public const KEY_DESKTOP_REWARD         = 'desktop_reward';         // 添加桌面奖励
    /**
     * @return static
     * tag
     */
    public static function tag():self
    {
        $fieldExtList   = [self::EXT_NAME => self::FIELD_NAME];
        return parent::tag()->config(self::TABLE_NAME, self::FIELD_ID, self::FIELD_KEY, $fieldExtList);
    }
}